<template>
  <!-----------------订单------------------>
  <view class="all">
    <hea :title="title"></hea>
    <div
      style="
        width: 100%;
        height: 120px;
        background-color: white;
        margin-top: 2px;
        display: flex;
      "
      @click="orderMsg"
    >
      <div style="width: 33%">
        <img
          src="../../static/img/bing.jpg"
          style="width: 100px; height: 90px; padding: 10px"
        />
      </div>
      <div style="width: 42%">
        <div style="font-size: 16px; margin-top: 15px">潘祥记玫瑰鲜花饼</div>
        <div style="font-size: 16px; margin-top: 25px">￥20.0</div>
        <div style="font-size: 12px; color: grey; margin-top: 10px">
          送达时间 2016-12-11 17:00
        </div>
      </div>
      <div style="width: 25%" v-if="value == 1">
        <div
          style="
            color: #38c4fe;
            text-align: center;
            margin-top: 20px;
            font-size: 18px;
          "
        >
          正在配送
        </div>
        <div
          style="
            color: white;
            width: 100px;
            height: 35px;
            border-radius: 10px;
            background-color: grey;
            text-align: center;
            line-height: 35px;
            margin-top: 15px;
          "
        >
          评价得积分
        </div>
      </div>
      <div style="width: 25%" v-else>
        <div
          style="
            color: #38c4fe;
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            margin-right: 10px;
          "
        >
          配送完成
        </div>
        <div
          style="
            color: white;
            width: 84px;
            height: 30px;
            border-radius: 10px;
            background-color: orange;
            text-align: center;
            line-height: 30px;
            margin-top: 15px;
            position: absolute;
            font-size: 11px;
          "
          @click.stop="jumppj"
        >
          评价得积分
        </div>
      </div>
    </div>
  </view>
</template>
<script>
import hea from "../../components/hea.vue";
export default {
  components: {
    hea,
  },

  data() {
    return {
      title: "我的订单",
      value: "2",
    };
  },
  methods: {
    orderMsg() {
      uni.navigateTo({
        url: "/pages/center/orderMsg",
      });
    },
    jumppj() {
      uni.navigateTo({
        url: "/pages/center/evaluate",
      });
    },
  },
  onShow() {},
};
</script>

<style scoped>
.all {
  width: 100vw;
  height: 100vh;
  background: #f2f2f2;
}
.box1 {
  width: 100%;
  height: 50px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(206, 206, 206);
}
</style>
